package com.cema.manage.framework.web.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.cema.manage.project.enums.ProxyLevelStatusEnum;
import com.cema.manage.project.manage.proxyLevel.domain.ProxyLevel;
import com.cema.manage.project.manage.proxyLevel.service.IProxyLevelService;
import com.cema.manage.project.system.dict.domain.DictData;
import com.cema.manage.project.system.dict.service.IDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * reasahi首创 html调用 thymeleaf 实现字典读取
 * 
 * @author reasahi
 */
@Component
public class ProxyLevelService
{
    @Autowired
    private IProxyLevelService proxyLevelService;

    /**
     * 代理
     *
     * @return 参数键值
     */
    public List<ProxyLevel> selectProxyLevel()
    {
        EntityWrapper<ProxyLevel> entityWrapper = new EntityWrapper<>();
        entityWrapper.eq("pl_status", ProxyLevelStatusEnum.PROXY_LEVEL_STATUS_NORMAL.getValue());
        return proxyLevelService.selectList(entityWrapper);
    }
}
